import {$get,$post,$put,$delete} from './request'

export const $userSearch = async (params)=>{
    //
    let data = await $get('/User/getList', params)
    console.log(data,"userSearch")
    return data;
}

export const $userMyInfo = async (params)=>{
    //
    console.log(params,"userMyInfo")
    let data = await $post('/User/getMyInfo', params)
    console.log(data,"userMyInfo")
    return data;
}

export const $Pwdupdate = async (params)=>{
    //
    console.log(params,"Pwdupdate")
    let data = await $put('/User/UpdateUserPassword', params)
    console.log(data,"Pwdupdate")
    return data;
}

export const $userAdd = async (params)=>{
    //
    let data = await $post('/User/AddUser', params)
    console.log(data,"userAdd")
    return data;

}

export const $userUpdate = async (params)=>{
    //console.log(params,"params")
    console.log(params,"params")
    let data = await $put('/User/UpdateUser', params)
    console.log(data,"userUpdate")
    return data;

}

export const $userDelete = async (params)=>{
    //
    console.log(params,"params")
    let data = await $put('/User/DeleteUser', params)
    
    console.log(data,"userDelete")
    return data;

}